package com.newtouch.bxzs.database.service;


import com.baomidou.mybatisplus.core.metadata.IPage;
import com.newtouch.bxzs.common.base.model.bo.DataDictionaryValueBO;
import com.newtouch.bxzs.database.model.bo.DataDictionaryEntryBO;
import com.newtouch.bxzs.database.model.vo.DataDictionaryEntryChangeVO;
import com.newtouch.bxzs.database.model.vo.DataDictionaryEntryListVO;
import com.newtouch.bxzs.database.model.vo.DataDictionaryEntryVO;

import java.util.List;

/**
 * 数据字典项管理的service接口
 *
 * <p>
 * <b>History:</b>
 * <table border="1">
 * <tr>
 * <th>Date</th>
 * <th>Operator</th>
 * <th>Memo</th>
 * </tr>
 * <tr>
 * <td>2021/1/5/td>
 * <td>zhangqianyang</td>
 * <td>Create</td>
 * </tr>
 * </table>
 *
 * @author zhangqianyang
 * @version 1.0.0
 * @since 1.0.0
 */

public interface DataDictionaryEntryService {

    /**
     * 通过数据字典id查询数据字典项列表
     *
     * @param dataDictionaryEntryListVO 数据字典项列表VO类
     * @return 数据字典项列表
     */
    IPage<DataDictionaryEntryBO> getDataDictionaryEntryListById(DataDictionaryEntryListVO dataDictionaryEntryListVO);

    /**
     * 批量逻辑删除
     *
     * @param dataDictionaryEntryIds 数据字典id集合
     * @return 数据字典id
     */
    String deleteDataDictionaryEntry(List<String> dataDictionaryEntryIds);

    /**
     * 新增或者修改
     *
     * @param dataDictionaryEntryVO 数据字典项VO类
     * @return message
     */
    String modifyDataDictionaryEntry(DataDictionaryEntryVO dataDictionaryEntryVO);

    /**
     * 启用或者禁用
     *
     * @param dataDictionaryEntryChangeVO 数据字典项id
     * @return 数据字典id
     */
    String changeDataDictionaryEntryStatus(DataDictionaryEntryChangeVO dataDictionaryEntryChangeVO);

    /**
     * 获取详情
     *
     * @param dataDictionaryEntryId 数据字典项id
     * @return 详情
     */
    DataDictionaryEntryBO getDataDictionaryEntryDetail(String dataDictionaryEntryId);

    /**
     * 通过code获取数据字典项
     *
     * @param dictionaryCode 数据字典code
     * @param dataDictionaryEntryName 数据字典名称
     * @return 数据字典项
     */
    List<DataDictionaryValueBO> getDataDictionaryEntryListByCode(String dictionaryCode, String dataDictionaryEntryName);
}
